<?php

		$lat = $_POST['lat'];
		$lng = $_POST['lng'];
		//$f = file_get_contents('http://maps.google.com/maps/api/elevation/json?locations=39.7391536,-104.9847034&sensor=false');
		$f = file_get_contents('http://maps.google.com/maps/api/elevation/json?locations=' . $lat . ',' . $lng . '&sensor=false');
		$result = explode(" ",$f);
		$result = explode(",",$result[22]);
		echo $result[0];